//package gew.timers;
//
//import gew.services.TradeLoadArchiveService;
//import java.util.logging.Level;
//import java.util.logging.Logger;
//import javax.ejb.EJB;
//import javax.ejb.Schedule;
//import javax.ejb.Singleton;
//
//@Singleton
//public class TradeLoadArchiveTimer {
//
//    @EJB
//    private TradeLoadArchiveService tradeLoadArchiveService;
//    
//    private boolean busy = false;
//
//    @Schedule(second = "0", minute = "*", hour = "*/1", persistent = false)
//    public void doWork() {
//        if (busy) {
//            Logger.getLogger(TradeLoadArchiveTimer.class.getName()).log(Level.INFO, "TradeLoadArchiveService is busy");
//            return;
//        }
//        busy = true;
//        Logger.getLogger(TradeLoadArchiveTimer.class.getName()).log(Level.INFO, "TradeLoadArchiveService is calling");
//        tradeLoadArchiveService.execute();
//        busy = false;
//    }
//}
